package com.ls.blog.controller;

import com.ls.blog.result.JsonResult;
import com.ls.blog.utils.ResultTool;
import com.ls.blog.vo.BlogInfo;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: myblog
 * @author: lishun
 * @create: 2021-07-16 10:44
 **/

@Api(tags = {"博客信息"})
@RestController
@RequestMapping("blogInfo")
public class BlogInfoController {

    @GetMapping
    public JsonResult<BlogInfo> blogInfo(){
        BlogInfo blogInfo = new BlogInfo();
        blogInfo.setAvatar("http://qw2la7oq5.hn-bkt.clouddn.com/02327607-1894-418c-8e89-22036b7f31b9.png");
        blogInfo.setIntro("大四废物");
        blogInfo.setTagCount(10);
        blogInfo.setNickname("咖啡");
        blogInfo.setArticleCount(11);
        blogInfo.setNotice("通知");
        blogInfo.setCategoryCount(12);
        blogInfo.setViewsCount(100);
        return ResultTool.success(blogInfo);
    }
}
